﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WoAiPao {

    /// <summary>
    /// 提供工具函数。
    /// </summary>
    public static class Utility {

        public static void showError(string message) {
            //HttpContext.Current.Response.Write("<div>");
            //HttpContext.Current.Response.Write(message);
            //HttpContext.Current.Response.Write("</div>");

            //HttpContext.Current.Response.Write("<script>setTimeout('history.back()', 3000)</script>");

            HttpContext.Current.Response.Redirect("~/error.cshtml?message=" + Circus.Utility.EncodeHelper.encodeURI(message));
            HttpContext.Current.Response.End();
        }


    }

}